<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div style="padding-left: 30%;font-weight:900;font-size: 100px;padding-top: 10%;">这是Js第二次课程</div>

    <script>
        alert("这里会展示函数相关的内容")

        let name = "默认"
        name = prompt("请输入姓名")
        let age = "10"
        age = prompt("请输入岁数")
        let month ="11"
        month = prompt("请输入月份")
        let day = "11"
        day = prompt("请输入日期")

        function time(){
            console.log("今天是2025年的" + month + "月" + day + "日，" + name + "先生，日安。你已经在这个世界生活了" + age ,"年了")
            returns = "今天是2025年的" + month + "月" + day + "日，" + name + "先生，日安。你已经在这个世界生活了" + age ,"年了"
            return returns
        }
        time()
        alert(returns)

        let daily = function(month, day) { 
            console.log(month + "月" + day + "日, 晚上好")
            return day
        }
        daily(month, day)

        let welcome = (name) => { 
            alert(name + "，欢迎使用")
        }
        welcome(name)
        // 以上展示了部分内容，往下展开对数据类型的验证和判断
        console.log(typeof welcome)

        let num = 2410305118
        console.log(typeof num)

        let str = "张"
        console.log(typeof str)

        let boo = false
        console.log(typeof boo)

        let obj = null
        console.log(typeof obj)

        let kk = {
            name: "white",
            age: 18
        }
        console.log(typeof kk)

        let un = undefined
        console.log(typeof un)

        let arr = [1, 2, 3, 7, 9]
        console.log(typeof arr)
        console.log(arr instanceof Array)

        console.log(arr)
        console.log(Array)
        console.log(time) 

        let arr1 = new Array("你", "是", "谁") //再次判断是否相同
        console.log(arr1 instanceof Array)

        let sss = new String("我", "是", "软件2402", "的", "学生")
        console.log(sss instanceof Array)
        console.log(sss instanceof String)
    </script>
</body>
</html>